<!--
/*
*All rights reserved: Json.
*Links:http://www.liyaoquan.cn.
*Links:http://imarkchina.cn.
*Links:http://www.imarkchina.cn.
*/
-->
{A('public/tools')}
<script type="text/javascript">
	function selectAll(){
		var checklist = document.getElementsByName("id[]");
		if(document.getElementById("controlAll").checked) {
			for(var i=0;i<checklist.length;i++) {
				checklist[i].checked = 1;
			}
		}else{
			for(var j=0;j<checklist.length;j++)  {
				checklist[j].checked = 0;
			}
		}
	}
</script>
<div class="main-wrap">
	<div class="crumb-wrap">
		<div class="crumb-list"><span class="crumb-name">分类管理</span></div>
	</div>
	<div class="result-wrap">
		<form action="{U('update')}" method="post">
			<div class="result-title">
				<div class="result-list">
					<a href="{U('add')}"><i class="icon-font"></i>新增分类</a>
					<input type="submit" class="icon-font" value="批量删除" name="del" />
					<input type="submit" class="icon-font" value="更新排序" name="update" />
				</div>
			</div>
			<div class="result-content">
				<table class="result-tab" width="100%">
					<tr>
						<th class="tc" width="5%">
							<input class="allChoose" onclick="selectAll()" id="controlAll" type="checkbox" />
						</th>
						<th>排序</th>
						<th>ID</th>
						<th>标题</th>
						<th>添加时间</th>
						<th>日志数</th>
						<th>描述</th>
						<th>关键词</th>
						<th>操作</th>
					</tr>
					{foreach $bloglist $k $v}
					<tr>
						<td class="tc">
							<input name="id[]" value="{$k}" type="checkbox">
						</td>
						<td>
							<input class="common-input sort-input" name="ord[{$k}]" value="{$v['ord']}" type="text">
						</td>
						<td>{$k}</td>
						<td title="{$v['title']}">
							<a href="{U('add', array('eid'=>$k))}" title="{$v['title']}">{$v['title']}</a>
						</td>
						<td>{$v['date']} / {$v['time']}</td>
						<td>{$v['countpost']}</td>
						<td><div title="{$v['des']}">{$v['dess']}</div></td>
						<td><div title="{$v['keyword']}">{$v['keywordd']}</div></td>
						<td>
							<a class="link-update" href="{U('add', array('eid'=>$k))}">修改</a>
							<a class="link-del" href="{U('del', array('lid'=>$k))}">删除</a>
						</td>
					</tr>
					{/foreach}
				</table>
			</div>
		</form>
	</div>
</div>
<!--/main-->
</div>
</body>
</html>